<?php
/**
 * Created by PhpStorm.
 * User: 共赢岛
 * Date: 2023/12/19
 * Time: 17:08
 */

namespace App\Services\LifeCycle;


use App\Models\UserCar;
use Illuminate\Support\Facades\Auth;

class UserCarsService
{
    public static function one($condition = [])
    {
        $user = Auth::user();
        $condition['user_id'] = $user->id;

        return UserCar::where($condition)->first();
    }
}